﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="recharge.aspx.cs" Inherits="wallet.wallet_recharge" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>在线充值-游戏币充值</title>
    <script type="text/javascript" src="../js/jquery-1.6.1.js"></script>
    <script type="text/javascript">
      function insertDate()
      { 
        var flag=wallet.wallet_recharge.InsertOrder($("#account").val(),$("#amount").val());
        if(flag)
        {
          window.location.href="afterpay.aspx";
        }
      }
      $(function(){
         function InsertHtml(msg)
         {
           $("#count").text("");
           $("#count").append(msg);
         }
         function CountNumber()
         {
           var sum=wallet.wallet_recharge.CountNumber(document.getElementById("amount").value).value;
           InsertHtml(sum);
           //$("#count").text("");
           //$("#count").append(wallet.wallet_recharge.CountNumber(document.getElementById("amount").value).value);
         }
         $("#amount").keyup(function(){CountNumber();});
         $("#OK").click(function(){insertDate();});
      })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <table>
        <tr>
          <td>充值方式：</td>
          <td>支付宝在线充值</td>
        </tr>
        <tr>
          <td>游戏账户：</td>
          <td><input type="text" id="account" runat="server" /></td>
        </tr>
        <tr>
          <td>确认游戏账户：</td>
          <td><input type="text" id="accountagain" runat="server" /></td>
        </tr>
        <tr>
          <td>充值金额(元)：</td>
          <td><input type="text" id="amount" runat="server" /></td>
        </tr>
        <tr>
          <td>所获得点数：</td>
          <td id="count"></td>
        </tr>
        <tr>
          <td>验证码：</td>
          <td><input type="text" id="check" runat="server" /><img alt="" src="" /></td>
        </tr>
        <tr>
          <td></td>
          <td><a href="#"><img id="OK" alt="支付宝付款" src="../Image/alipay/160x35.png" style="border:0" /></a></td>
        </tr>
      </table>
    </div>
    </form>
</body>
</html>
